package com.yand.frame.service.impl.pay;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.yand.frame.dao.PayInfoMapper;
import com.yand.frame.entity.PayInfo;
import com.yand.frame.service.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;



@Service
public class PayServiceImpl implements PayService {


    @Autowired
    private PayInfoMapper payInfoMapper;

    @Override
    public PageInfo queryPayList(PayInfo payInfo) {
        PageHelper.startPage(payInfo.getPageNum(), payInfo.getPageSize());

        return PageInfo.of(payInfoMapper.queryPayList(payInfo));
    }
}
